﻿using System;
using System.Collections.Generic;

using System.Text;
using yb.commerce.DAL;
using yb.commerce.Model;

namespace yb.commerce.BLL
{
    public class OrderStatusBusiness
    {
        public bool Add(OrderStatus orderStatus)
        {
            return new OrderStatusDAO().Add(orderStatus);
        }

        public bool Delete(int Id)
        {
            return new OrderStatusDAO().Delete(Id);
        }

        public bool Update(OrderStatus orderStatus)
        {
            return new OrderStatusDAO().Update(orderStatus);
        }

        public OrderStatus GetEntity(int Id)
        {
            return new OrderStatusDAO().GetEntity(Id);
        }

        public DataRecordTable GetList(string fieldList, string orderField, bool orderBy, int pageIndex, int pageSize, string where)
        {
            return new OrderStatusDAO().GetList(fieldList,orderField,orderBy,pageIndex,pageSize,where);
        }
    }
}
